<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script>
	window.onload=function(){		
		if({$data['sex']}==0){
			document.getElementsByName('sex')[1].checked='checked';
		}else{
			document.getElementsByName('sex')[0].checked='checked';
		}
	}
</script>
</head>
<body>
	<form action='/app/index.php/User/update' method='post'>
			<input type='hidden' name='id' value="{$data.id}"/>
			name:<input type="text" name='name' value="{$data['name']}"/><br/>
			sex: M<input type='radio' name='sex' value='1' > F<input type='radio' name='sex' value='0'/><br/>
			<input type="submit" value="submit"/>
	</form>
</body>
</html>